home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 November / CPNL0711.ISO / boekhoud / finan / BADGER finance v1.0 beta 2.exe / xampplite / phpMyAdmin / transformation_overview.php < prev    next >
PHP Script  |  2005-11-23  |  2KB  |  71 lines

  1. <?php
  2. /* $Id: transformation_overview.php,v 2.2 2005/11/24 09:12:16 nijel Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. /**
  6.  * Don't display the page heading
  7.  */
  8. define('PMA_DISPLAY_HEADING', 0);
  9.  
  10. /**
  11.  * Gets some core libraries and displays a top message if required
  12.  */
  13. require_once('./libraries/common.lib.php');
  14. require_once('./libraries/header.inc.php');
  15. require_once('./libraries/relation.lib.php');
  16. require_once('./libraries/transformations.lib.php');
  17. $cfgRelation = PMA_getRelationsParam();
  18.  
  19. $types = PMA_getAvailableMIMEtypes();
  20. ?>
  21.  
  22. <h2><?php echo $strMIME_available_mime; ?></h2>
  23. <?php
  24. foreach ($types['mimetype'] AS $key => $mimetype) {
  25.  
  26.     if (isset($types['empty_mimetype'][$mimetype])) {
  27.         echo '<i>' . $mimetype . '</i><br />';
  28.     } else {
  29.         echo $mimetype . '<br />';
  30.     }
  31.  
  32. }
  33. ?>
  34. <br />
  35. <i>(<?php echo $strMIME_without; ?>)</i>
  36.  
  37. <br />
  38. <br />
  39. <br />
  40. <h2><?php echo $strMIME_available_transform; ?></h2>
  41. <table border="0" width="90%">
  42.     <tr>
  43.         <th><?php echo $strMIME_transformation; ?></th>
  44.         <th><?php echo $strMIME_description; ?></th>
  45.     </tr>
  46.  
  47. <?php
  48. @reset($types);
  49. $i = 0;
  50. foreach ($types['transformation'] AS $key => $transform) {
  51.     $i++;
  52.     $func = strtolower(preg_replace('@(\.inc\.php3?)$@i', '', $types['transformation_file'][$key]));
  53.     $desc = 'strTransformation_' . $func;
  54. ?>
  55.     <tr bgcolor="<?php echo ($i % 2 ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']); ?>">
  56.         <td><?php echo $transform; ?></td>
  57.         <td><?php echo (isset($$desc) ? $$desc : '<font size="-1"><i>' . sprintf($strMIME_nodescription, 'PMA_transformation_' . $func . '()') . '</i></font>'); ?></td>
  58.     </tr>
  59. <?php
  60. }
  61. ?>
  62.  
  63. <?php
  64. /**
  65.  * Displays the footer
  66.  */
  67. echo "\n";
  68. require_once('./libraries/footer.inc.php');
  69.  
  70. ?>
  71.